package cn.edu.zzuli.nothinglink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WorkSubmitRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * work_submit_id
     */
    @TableId(value = "ws_id", type = IdType.AUTO)
    private Integer wsId;

    private Integer workId;

    private Integer wsStuId;

    private String wsStuName;

    private String wsFileUrl;

    /**
     * text设为json，方便存储
     */
    private String wsText;

    /**
     * 分数
     */
    private double score;

    @TableField(value = "work_type")
    private Integer workType;

    /**
     * 1为text，2为png，3为file
     */
    private Integer wsType;

    private LocalDateTime submitTime;

    @TableField(value = "stu_number")
    private String stuNumber;

    @TableField(value = "class_id")
    private Integer classId;

    @TableField(exist = false)
    private String className;


}
